<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>

    <style>

        .box1 {
            margin:  100px auto;
            width: 60px;
            height: 60px;
            background: url("sprites.png") no-repeat -182px 0;
        }

        .box2 {
            margin: 0 auto;
            width: 27px;
            height: 25px;
            background: url("sprites.png") no-repeat -155px -106px;
        }

        .namebox {
            margin: 10px auto;
            width: 1200px;
            height: 300px;
        }

        .name1, .name2, .name3, .name4, .name5, .name6, .name7 {
            float: left;
            margin-top: 10px;
            background: url("abcd.jpg") no-repeat;
        }
        .name1 {
            width: 105px;
            height: 110px;
            background-position: -495px -142px;
        }
        .name2 {
            width: 106px;
            height: 110px;
            background-position:0 -9px;
        }
        .name3 {
            width: 115px;
            height: 112px;
            background-position: -255px -273px;
        }
        .name4 {
            width: 107px;
            height: 109px;
            background-position: -97px -139px;
        }
        .name5 {
            width: 105px;
            height: 107px;
            background-position: -253px -561px;
        }
        .name6 {
            width: 61px;
            height: 109px;
            background-position: -326px -140px;
        }
        .name7 {
            width: 115px;
            height: 112px;
            background-position: -255px -273px;
        }

    </style>

</head>
<body>
    <img src="精灵图使用.png" alt="">
    <br>
    <img src="精灵图使用注意点.png" alt="">
    <br><br>

    <div class="box1"></div>
    <br>
    <div class="box2"></div>

    <br><br>

    <div class="namebox">
        <div class="name1"></div>
        <div class="name2"></div>
        <div class="name3"></div>
        <div class="name4"></div>
        <div class="name5"></div>
        <div class="name6"></div>
        <div class="name7"></div>
    </div>


</body>
</html>